{extend name="public/base"/}
{block name="style"}
<link rel="stylesheet" type="text/css" href="__PUBLIC__/css/libs/bootstrap-editable.css">
{/block}
{block name="body"}
<div class="main-box clearfix">
	<header class="main-box-header clearfix">
		<div class="pull-left">
			<h2>{$meta_title}</h2>
		</div>
	</header>
	<div class="main-box-body clearfix">
		<div class="table-responsive clearfix">
			<table class="table table-hover">
				<thead>
					<tr>
						<th width="30"><input class="checkbox check-all" type="checkbox"></th>
						<th width="50">ID</th>
						<th>宠物名称</th>
                        <th>类别</th>
                        <th>性别</th>
                        <!-- <th>主人</th> -->
                        <th>状态</th>
						<th>创建时间</th>
						<th>操作</th>
					</tr>
				</thead>
				<tbody>
					{volist name="list" id="item"}
					<tr>
						<td><input class="ids row-selected" type="checkbox" name="id[]" value="{$item['id']}"></td>
						<td>{$item['id']}</td>
						<td>{$item['name']}</td>
						<td>
							{if $item['type_id'] eq 0}
							猫派
							{elseif $item['type_id'] eq 1}
							狗派
							{else/}
							其他
							{/if}
						</td>
						<td>{$item['sex']}</td>
                        <!-- <td>{$item['uid']}</td> -->
                        <td>
							{if $item['status']}
							正常
							{else/}
							禁用
							{/if}
						</td>
                        <td>{$item['create_time']}</td>
						<td>
							{if $item['status'] eq 0}
							<a href="{:url('audit?id='.$item['id'])}" class="confirm ajax-get">审核通过</a>
							{/if}
							<a href="{:url('delete?id='.$item['id'])}" class="confirm ajax-get">删除</a>
						</td>
					</tr>
					{/volist}
				</tbody>
			</table>
			{$page}
		</div>
	</div>
</div>
{/block}
